package com.wk.fe;

import com.wk.fe.record.UserRecord;

public class RecordTest {
    public static void main(String[] args) {
        UserRecord userRecord = new UserRecord("wk", "123");
        System.out.println(userRecord.name());
        System.out.println(userRecord.pass());
        // 只能获取属性

        // record 看成一种特殊的类

        test(userRecord);
    }

    private static void test(UserRecord userRecord) {
        System.out.println(String.format("I am %s", userRecord.name()));
    }
}
